//
//  Triangle.h
//  GLPaint
//
//  Created by Brian Kong on 2/25/12.
//  Copyright 2012 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <OpenGLES/ES1/glext.h>


/////////////////////////////////////////////
@protocol ShapeDataSource
   @required
     -(GLint) shapeStartingIndex;
   -(GLsizei) shapeNumberOfIndicesToRender;
 -(GLfloat *) shapeVertices;

@end 


/////////////////////////////////////////////
@interface Triangle : NSObject {
  id<ShapeDataSource> m_Delegate;
}

@property(nonatomic, assign) id<ShapeDataSource> delegate;

-(void) init;
-(void) drawAtPoint:(CGPoint) point;
-(void) drawInRect:(CGRect) rect;
@end
